﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Users {

    /// <summary>
    /// This interface is used for Web Admin to manage user living profile
    /// </summary>
    public interface IUserLivingProfileAdmin {

        /// <summary>
        /// Inserts the UserLivingProfileEnt item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns>Return true if success, otherwise return false</returns>
        bool Insert(UserLivingProfileEnt item);

        /// <summary>
        /// Updates the UserLivingProfileEnt item.
        /// </summary>
        /// <param name="item">The UserLivingProfileEnt item.</param>
        /// <returns>Return true if success, otherwise return false.</returns>
        bool Update(UserLivingProfileEnt item);

        /// <summary>
        /// Gets by user key.
        /// </summary>
        /// <param name="userKey">The user key.</param>
        /// <returns>Return UserLivingProfileEnt if exits, otherwise return null</returns>
        UserLivingProfileEnt GetByUserKey(string userKey);
    }
}
